You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > VectorInt Structure > VectorInt Methods > GetCol Method > VectorInt.GetCol Method ([In] TMtxInt, int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
VectorInt.GetCol Method ([In] TMtxInt, int)

Copies a column from matrix.

Syntax
C#
Visual Basic
public TVecInt GetCol([In] TMtxInt Mtx, int Col);

Copies the Col-th column from Mtx matrix to calling vector. The TMtxVecBase.Length and TMtxVecInt.IntPrecision properties of calling vector are adjusted automatically. An exception is raised if condition checking is enabled and Col is greater than Mtx.Cols-1.

var a: TVecInt; b: TMtxInt; begin CreateIt(a); CreateIt(b); try b.SetIt(2,2,[1,2, 3,4]); a.GetCol(b,0); // a now contains [1,3] finally FreeIt(a); FreeIt(b); end; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!